<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/index.css">
    <title>温度预测</title>
    <script src="js/jquery-2.2.1.min.js"></script>
    <script src="js/rem.js"></script>
    <script src="js/echarts.min.js"></script>
    <style>
        .upload-container {
    text-align: center;
}
.upload-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.upload-btn:hover {
    background-color: #45a049;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}
.upload-btn:active {
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}
#fileInput {
    display: none;
}
.main_table {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 450px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.main_table table {
    width: 100%;
    border-collapse: collapse;
}

.main_table th, .main_table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.main_table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.main_table tr:hover {
    background-color: #f5f5f5;
}
    </style>
</head>
<body>
    <div class="t_container">
        <header class="t_h_bg">
            <span>温度预测系统</span>
        </header>

        <div class="upload-container">
            <input type="file" id="fileInput" accept=".csv">
            <button class="upload-btn" onclick="document.getElementById('fileInput').click()">选择文件</button>
            <button id="predictBtn" class="upload-btn" disabled onclick="fetchPredictionData()">开始预测</button>
        </div>

        <main class="t_main">
            <div class="t_box">
                <header class="t_title">
                    <span>温度预测趋势</span>
                </header>
                <div class="t_list">
                    <div class="t_min">高温 <i></i></div>
                    <div class="t_min">低温 <i class="down"></i></div>
                </div>
                <div id="chart_1" class="echart" style="width: 100%; height: 2.4rem;"></div>
            </div>
            <div class="t_box">
                <header class="t_title">
                    <span>温度分布</span>
                </header>
                <div id="chart_2" class="echart" style="width: 100%; height: 3rem;"></div>
            </div>
            <div class="t_box">
                <header class="t_title">
                    <span>训练过程指标</span>
                </header>
                <div id="chart_3" class="echart" style="width: 100%; height: 3rem;"></div>
            </div>
            <div class="t_box">
            <div class="main_table t_btn8">
                    <table>
                        <thead>
                        <tr>
                            <th>最高温</th>
                            <th>最低温</th>
                            <th>平均气温</th>
                        </tr>
                        </thead>
                        <tbody id=table-body>

                        </tbody>
                    </table>
                </div>
               </div>

        </main>
    </div>

    <script src="js/index.js"></script>
</body>
</html>